home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / Tools & Goodies / IntlTest / Sources / Defines.k < prev    next >
Encoding:
Text File  |  1996-04-23  |  3.4 KB  |  114 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Defines.k
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef DEFINES_K
  11. #define DEFINES_K
  12.  
  13. #ifndef FWMENU_K
  14. #include "FWMenu.k"
  15. #endif
  16.  
  17. //-------------------------------------------------------------------------------------
  18. // Uncomment the following three lines, and define them appropriately!!
  19. // If your part can be a container for other parts, define FW_SUPPORTS_EMBEDDING
  20. // to be 1.  Otherwise define it to be 0.
  21. // If your part defines any ODExtensions, define FW_SUPPORTS_EXTENSIONS to be
  22. // 1 to enable the extensions manager.  Otherwise, define it to be 0.
  23. // If your part is scriptable, define FW_SUPPORTS_SCRIPTING to be 1. Otherwise,
  24. // define it to be zero.  Note that if your part is scriptable is must support
  25. // extensions, so FW_SUPPORTS_EXTENSIONS must be defined to be 1.
  26.  
  27. #define FW_SUPPORTS_EMBEDDING 0
  28. #define FW_SUPPORTS_EXTENSIONS 0
  29. #define FW_SUPPORTS_SCRIPTING 0
  30.  
  31. #ifndef FW_SUPPORTS_EMBEDDING
  32. #error You must define FW_SUPPORTS_EMBEDDING to be 0 or 1 (immediately above)
  33. #endif
  34.  
  35. #ifndef FW_SUPPORTS_EXTENSIONS
  36. #error You must define FW_SUPPORTS_EXTENSIONS to be 0 or 1 (immediately above)
  37. #endif
  38.  
  39. #ifndef FW_SUPPORTS_SCRIPTING
  40. #error You must define FW_SUPPORTS_SCRIPTING to be 0 or 1 (immediately above)
  41. #endif
  42.  
  43. //-------------------------------------------------------------------------------------
  44. // Part Icon ID
  45. #define kPartIconID 128
  46.  
  47. //-------------------------------------------------------------------------------------
  48. // Menu Bar 
  49. #define kMenuBar     1024
  50. #define kAboutBox    1024
  51.  
  52. //-------------------------------------------------------------------------------------
  53. // Strings
  54. #define kIntlTestPartStrings 1000
  55.  
  56. #define kFirstString         1
  57. #define kMacString            2
  58. #define kWinString            3
  59. #define kBlankString        4
  60.  
  61. #ifdef FW_BUILD_MAC
  62. #define kPlatformString     kMacString
  63. #endif
  64. #ifdef FW_BUILD_WIN
  65. #define kPlatformString     kWinString
  66. #endif
  67.  
  68. #define kIntlTestUndoStrings 1002
  69.  
  70. #define kUndoDragTextMsg    1
  71. #define kRedoDragTextMsg    2
  72. #define kUndoDropTextMsg    3
  73. #define kRedoDropTextMsg    4
  74. #define kUndoClearTextMsg    5
  75. #define kRedoClearTextMsg    6
  76. #define kUndoCutTextMsg        7
  77. #define kRedoCutTextMsg        8
  78. #define kUndoPasteTextMsg    9
  79. #define kRedoPasteTextMsg    10
  80.  
  81. //-------------------------------------------------------------------------------------
  82. // About box Alert ID
  83. #define kIntlTestAboutBoxID  5000
  84.  
  85. //-------------------------------------------------------------------------------------
  86. // Part Info 
  87. #define kPartInfoID         1024
  88.  
  89. //-------------------------------------------------------------------------------------
  90. // Command IDs
  91. #define cFirstCommand        FW_kFirstUserCommandID
  92. #define cSecondCommand        cFirstCommand + 1
  93. #define cSystemFont            cSecondCommand + 1
  94. #define cDefaultFont        cSystemFont + 1
  95. #define cInlineInput        cDefaultFont + 1
  96.  
  97. //-------------------------------------------------------------------------------------
  98. // IDs for EditViews
  99. #define kEnglishEditView 1
  100. #define kJapaneseEditView 2
  101. #define kTextEditView 3
  102.  
  103. //-------------------------------------------------------------------------------------
  104. // IDs for Test Strings
  105. #define kDefaultTextStringID    2000
  106. #define kDefaultEngStringID        2001
  107. #define kDefaultJapStringID        2002
  108.  
  109. // Resource type for test FW_RStrings
  110. #define TESTSTRINGRES 'TEst'
  111.  
  112. #endif
  113.  
  114.